function windowResize() {
	minHeight = window.innerHeight - 146;
	width = window.innerWidth-100;
	document.getElementById('main').style.minHeight=minHeight+'px';
	document.getElementById('main').style.width=width+'px';
}
/***
function tableResize() {
	var tableWidth = window.innerWidth-140;
	var tableElements = document.querySelectorAll('#name');
	for (i=0; i<=tableElements.length; i++) {
		tableElements{i}.style.maxWidth=tableWidth*.3+'px';
	}
}
***/
function searchExpand() {
	document.getElementById('menu-search-form-input-div').style.width;
}

function searchContract() {

}

$(document).ready(function() {
	$("#menu-search").mouseenter(function(){
		$('#menu-search-form-input-div').css('margin-right','20px')
		$('#menu-search-form-input-div').animate({width: '200px'})
		$('#menu-search-form-input-div').css('margin-right','20px')
	})
	$('#menu-search').mouseleave(function() {
		$('#menu-search-form-input-div').css('margin-right','20px')
		$('#menu-search-form-input-div').animate({width: '0px'},function() {$('#menu-search-form-input-div').css('margin-right','0px')})

	})
})

window.onresize = windowResize;
